package com.lyandwc.lw_bbs.security.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.lyandwc.lw_bbs.security.dao.RoleDao;
import com.lyandwc.lw_bbs.security.entity.Role;
import com.lyandwc.lw_bbs.security.service.RoleService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class RoleServiceImpl extends ServiceImpl<RoleDao, Role> implements RoleService {
    @Override
    public List<Role> findRoleByUserId(int userId) {
        return this.baseMapper.findRoleByUserId(userId);
    }
}
